<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
<!--action设置提交地址-->
<form action="http://www.taobao.com">

    用户名:<input type="text" name="username" value="tom" maxlength="5" placeholder="请输入用户名" readonly><br>

    密码:<input type="password" name="password" placeholder="请输入用密码"><br>

    性别: <input type="radio" name="gender" value="m" id="r1"><label for="r1">男</label>
    <input type="radio" name="gender" checked value="w" id="r2"><label for="r2">女</label>
    <br><br>

    兴趣爱好: <input type="checkbox" name="hobby" value="cy" id="c1"><label for="c1">抽烟</label>
    <input type="checkbox" name="hobby" value="hj" id="c2"><label for="c2">喝酒</label>
    <input type="checkbox" name="hobby" value="tt" id="c3"><label for="c3">喝酒</label><br><br>

    生日: <input type="date" name="birthday"><br>

    靓照: <input type="file" name="pic"><br>

    所在地: <select name="city" id="">
    <option value="bj">北京</option>
    <option value="sh">上海</option>
    <option value="gz" selected>广州</option>
</select><br>

    <input type="submit" value="注册">
    <input type="reset" value="重置">
    <input type="button" value="自定义按钮">
    <br><br>
    <button type="submit" >提交</button>
    <button type="reset" >重置</button>
    <button type="button" >自定义按钮</button>

</form>
</body>
</html>